package com.rran.pf4j.pluginB;

import org.apache.commons.lang.StringUtils;
import org.pf4j.Plugin;
import org.pf4j.PluginWrapper;
import org.pf4j.RuntimeMode;

public class BPlugin extends Plugin {
    public BPlugin(PluginWrapper wrapper) {
        super(wrapper);
    }

    @Override
    public void start() {
        System.out.println("BPlugin.start()");
        if (RuntimeMode.DEVELOPMENT.equals(wrapper.getRuntimeMode())) {
            System.out.println(StringUtils.upperCase("BPlugin"));
        }
    }

    @Override
    public void stop() {
        System.out.println("BPlugin.stop()");
    }

}
